<?php

namespace app\xf\model;

use think\Model;

class RoleModel extends Model
{
    //
    protected $table = 'xf_role';

    public function setRulesAttr($value)
    {
        return json_encode($value);
    }

    public function getRulesAttr($value)
    {
        return json_decode($value, true);
    }
}
